#ifndef _MCUIO_
#define _MCUIO_
#include "MCUConfig.h"

#define CAPCHANEL 0
#define NTCCHANEL 1
#define VOLCHANEL 2

#if (1 == MCU_CHIP_JUSHENG)
#if (MCU_VERSION >= 300)
extern TYPE_ENUM_LL_ADC_ONCE_MD_CH_SEL adc_channel_buf[];
#else
extern u16 adc_result_buf[];
#endif
#endif
short Round(float x);
// void writeOut(char port, short byte, bool isOn);
// u16 readOut(char port);
// u16 readIn(char port);

extern bool isBuzOn(void);
// extern u16 getADC(char port);
extern bool buzCtrl(void);
extern void buzTimeMgr(void);
extern void switchBuzOn(short timeout, char buzCnt);
extern void chargeCap(bool isEnable);
extern void ClearTemp(short Temp);
extern bool PIDCtrlTemp(short dstTemp, short currentTemp);
extern bool PIDCtrlTemp1(short dstTemp, short currentTemp);
extern short DegreeToNTCVal(short Temp);
extern short NTCToDegree(short NTC);



#endif
